package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 商品分类对象 pms_product_category
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("pms_product_category")
public class ProductCategory extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = -558328969729988076L;

    @Note("ID")
    private Long id;

    @Note("上级分类的编号：0表示一级分类")
    private Long parentId;

    @Note("NAME")
    private String name;

    @Note("分类级别：0->1级；1->2级")
    private Integer level;

    @Note("显示状态：0->不显示；1->显示")
    private Integer showStatus;

    @Note("SORT")
    private Integer sort;

    @Note("图标")
    private String icon;

}
